/*
 *  txdnet.cn tonydon
 * 
 */
package txdnet.util.http;

/**
 *
 * @author txdnet
 */
public class HttpSetting {
    
    /**
     * 设置编码UTF-8,GBK,etc.
     */
    private String charset;
    
    /**
     * 是否使用Expect: 100-continue检测
     */
    private Boolean useExpectContinue;
    
    /**
     * 客户端代理名称
     */
    private String  userAgent;
    
    /**
     * socket Timeout 毫秒时间
     */
    private Integer soTimeout;
    
    /**
     * Nagle's algorithm 是否被使用
     */
    private Boolean tcpNoDelay;
    
    /**
     * socket buffer used to buffer ,default 8192byte
     */
    private Integer soBufferSize;
    
    /**
     * 建立连接等待时间
     */
    private Integer connectionTimeout;
    
    /**
     * 每个路由的最大连接数
     */
    private Integer maxConnectionsPerRoute;
    
    /**
     * 总连接数
     */
    private Integer maxTotalConnections;
    
    /**
     * true : 忽略请求cookies策略，每次都请求新的COOKIES；
     */
    private Boolean ignoreCookies;

    /**
     * @return the charset
     */
    public String getCharset() {
        return charset;
    }

    /**
     * @param charset the charset to set
     */
    public void setCharset(String charset) {
        this.charset = charset;
    }

    /**
     * @return the useExpectContinue
     */
    public Boolean getUseExpectContinue() {
        return useExpectContinue;
    }

    /**
     * @param useExpectContinue the useExpectContinue to set
     */
    public void setUseExpectContinue(Boolean useExpectContinue) {
        this.useExpectContinue = useExpectContinue;
    }

    /**
     * @return the userAgent
     */
    public String getUserAgent() {
        return userAgent;
    }

    /**
     * @param userAgent the userAgent to set
     */
    public void setUserAgent(String userAgent) {
        this.userAgent = userAgent;
    }

    /**
     * @return the soTimeout
     */
    public Integer getSoTimeout() {
        return soTimeout;
    }

    /**
     * @param soTimeout the soTimeout to set
     */
    public void setSoTimeout(Integer soTimeout) {
        this.soTimeout = soTimeout;
    }

    /**
     * @return the tcpNoDelay
     */
    public Boolean getTcpNoDelay() {
        return tcpNoDelay;
    }

    /**
     * @param tcpNoDelay the tcpNoDelay to set
     */
    public void setTcpNoDelay(Boolean tcpNoDelay) {
        this.tcpNoDelay = tcpNoDelay;
    }

    /**
     * @return the soBufferSize
     */
    public Integer getSoBufferSize() {
        return soBufferSize;
    }

    /**
     * @param soBufferSize the soBufferSize to set
     */
    public void setSoBufferSize(Integer soBufferSize) {
        this.soBufferSize = soBufferSize;
    }

    /**
     * @return the connectionTimeout
     */
    public Integer getConnectionTimeout() {
        return connectionTimeout;
    }

    /**
     * @param connectionTimeout the connectionTimeout to set
     */
    public void setConnectionTimeout(Integer connectionTimeout) {
        this.connectionTimeout = connectionTimeout;
    }

    /**
     * @return the maxConnectionsPerRoute
     */
    public Integer getMaxConnectionsPerRoute() {
        return maxConnectionsPerRoute;
    }

    /**
     * @param maxConnectionsPerRoute the maxConnectionsPerRoute to set
     */
    public void setMaxConnectionsPerRoute(Integer maxConnectionsPerRoute) {
        this.maxConnectionsPerRoute = maxConnectionsPerRoute;
    }

    /**
     * @return the maxTotalConnections
     */
    public Integer getMaxTotalConnections() {
        return maxTotalConnections;
    }

    /**
     * @param maxTotalConnections the maxTotalConnections to set
     */
    public void setMaxTotalConnections(Integer maxTotalConnections) {
        this.maxTotalConnections = maxTotalConnections;
    }

    /**
     * @return the ignoreCookies
     */
    public Boolean getIgnoreCookies() {
        return ignoreCookies;
    }

    /**
     * @param ignoreCookies the ignoreCookies to set
     */
    public void setIgnoreCookies(Boolean ignoreCookies) {
        this.ignoreCookies = ignoreCookies;
    }
}
